/*
The user is asked to enter 2 floating point numbers (use doubles).
The user is then asked to enter one of the following mathematical
symbols: +, -, *, or /. The program computes the answer on the two
numbers the user entered and prints the results. If the user enters
an invalid symbol, the program should print nothing.
*/

#include <iostream>
using namespace std;

void SimpleCalculator()
{
    double dNumA = 0.0, dNumB = 0.0, dTotal =0;
    cout << "Please enter first number: ";
    cin >> dNumA;
    cout << "Please enter 2nd number: ";
    cin >> dNumB;
    cout << "Please enter +,-,*,/: ";
    char cOperator = 0 ;
    cin >> cOperator;

    switch(cOperator)
    {
    case '+':
        dTotal = dNumA + dNumB;
        cout << "Result: " << dNumA << " " << cOperator << " " << dNumB << " = " << dTotal;
        break;
    case '-':
        dTotal = dNumA - dNumB;
        cout << "Result: " << dNumA << " " << cOperator << " " << dNumB << " = " << dTotal;
        break;
    case '*':
        dTotal = dNumA * dNumB;
        cout << "Result: " << dNumA << " " << cOperator << " " << dNumB << " = " << dTotal;
        break;
    case '/':
        dTotal = dNumA / dNumB;
        cout << "Result: " << dNumA << " " << cOperator << " " << dNumB << " = " << dTotal;
        break;
    }




}

